﻿using System;
using System.Collections.Generic;

namespace Iptv.MediaReporter.Model
{
    /// <summary>
    /// 发布数据上报对象
    /// </summary>
    internal class ReportPublishData : ReportBaseModel
    {
        public List<PublishData> dataList { get; set; }
    }

    /// <summary>
    /// 发布数据
    /// </summary>
    internal class PublishData
    {
        // <summary>
        /// 建档编号
        /// </summary>
        public string guid { get; set; }
        /// <summary>
        /// 发布日期
        /// </summary>
        public string publishDateTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        /// <summary>
        /// 视听内容时长（总秒数，数值类型，且必须大于0）
        /// </summary>
        public long showLength { get; set; } = 1024 * 100 * 1024;
        /// <summary>
        /// 播放地址URI 必须是以 http:// 或 https:// 开头的路径
        /// </summary>
        public string url { get; set; } = string.Empty;
        /// <summary>
        /// 播出频道
        /// </summary>
        public string channel { get; set; } = string.Empty;
        /// <summary>
        /// 播出日期时间
        /// </summary>
        public string broadcastDateTime { get; set; }
        /// <summary>
        /// 节目清晰度，包括8K、4K、HD、SD、其他等，文本格式
        /// </summary>
        public string definition { get; set; } = "HD";
        /// <summary>
        /// 播出模式， 0-非独播，1-电视台独播，2-互联网平台独播
        /// </summary>
        public int broadcastMode { get; set; } = 0;
    }
}
